<wx:page
 class="x-page"
 id="page"
 style="background-color:#f2edf5"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:model
 id="model"
 style="left:0px;top:0px;height:auto;position:absolute">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"
 xmlns:wx="$UI/wxsys/comps"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/dianpu"
 id="restData"
 label="店铺"
 url="/dbrest"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/gouwuj"
 confirmDeleteText="亲，确定不要这些了吗？"
 id="restData1"
 label="收藏夹"
 url="/dbrest"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default15"
 label="选中金额"
 name="col0"
 type="Double"
 xmlns="http://www.w3.org/1999/xhtml"/>
<join
 id="default16"
 leftTable="/main/gouwuj"
 rightTable="/main/shangpin1"
 xmlns="http://www.w3.org/1999/xhtml">
<on
 fn="eq"
 id="default17"
 leftField="fshangpinid"
 leftFieldLabel="商品id"
 rightField="fid"
 rightFieldLabel="主键"/>
<column
 field="fmingcheng"
 id="default18"
 label="商品id-名称"
 name="fshangpinid_shangpin1_fmingcheng"/>
<column
 field="ftupian"
 id="default19"
 label="商品id-图片"
 name="fshangpinid_shangpin1_ftupian"/>
<column
 field="fjiage"
 id="default20"
 label="商品id-价格"
 name="fshangpinid_shangpin1_fjiage"/>
<column
 field="fkucun"
 id="default21"
 label="商品id-库存"
 name="fshangpinid_shangpin1_fkucun"/></join>
<filter
 _filter_label="用户 等于 用户信息.id"
 id="restDatafilter1"
 name="_system1_">eq('fyonghu',restData2.current.id/*{&quot;dependencies&quot;:[&quot;user&quot;]}*/)</filter>
<rule
 id="rule1">
<col
 id="default12"
 name="col0"
 xid="xid_1552190248182_0">
<calculate
 id="default13">
<expr
 id="default14"><![CDATA[wx.Util.iif($row.fxuanzhong==null,0,$row.fxuanzhong * $row.fshangpinid_shangpin1_fjiage)]]></expr></calculate></col></rule></wx:restData>
<wx:restData
 _created="true"
 auto="load"
 className="/main/yonghufjxx"
 id="restData3"
 label="用户附加信息"
 url="/dbrest">
<filter
 _filter_label="用户ID 等于 用户信息.id"
 id="restDatafilter2"
 name="_system1_">eq('fyonghuid',restData2.current.id/*{&quot;dependencies&quot;:[&quot;user&quot;]}*/)</filter></wx:restData>
<wx:serviceRequest
 class="hide"
 id="serviceRequest"
 label="创建订单"
 service="/main/tianjiadqyhfjxx/chuangjiandd"/></wx:model>
<wx:loading
 class="weui-loader-full {{$state.loadingNum &lt;= 0 ?'weui-loader-hide':''}}"
 style="z-index: 10001;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-scale-ripple-multiple">
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/></view></wx:loading>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer">
<wx:user
 appPath="$UI/main"
 autoLoadUserInfo="true"
 autoLogin="true"
 id="user"
 useOpenid="false">
<wx:restData
 _created="true"
 className="uaa/user"
 columns="id,name,email,userName,phone,avatarUrl,description,data4,data5,data9,data15,data17,data2,data3,data6"
 id="restData2"
 label="用户信息"
 owner="user"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default0"
 label="昵称"
 name="nickName"
 type="String"/>
<column
 id="default1"
 label="群组"
 name="group"
 type="Array"/>
<column
 id="default2"
 label="是否登录"
 name="isLogined"
 type="Boolean"/>
<rule
 id="rule">
<readonly
 id="default3">
<expr
 id="default4">true</expr></readonly></rule></wx:restData></wx:user></wx:inVisibleCompContainer>
<wx:panel
 class="x-panel x-full"
 id="panel">
<wx:top
 class="x-panel-top"
 height="48"
 id="top"
 style="background-color:#eadbf2;height:48px">
<wx:row
 class="x-row x-row-center"
 id="row"
 style="height:48px;background-color:#eadbf2;margin-bottom:8px"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">
<wx:col
 class="x-col"
 id="col">
<wx:text
 bind:text="restData.current.fshanghumc"
 id="text"
 style="font-size:18px;color:#444444"
 xmlns:bind="http://www.wex5.com/wx/bind">商户名称</wx:text></wx:col>
<wx:col
 class="x-col x-col-fixed"
 id="col1">
<wx:text
 id="text1"
 on:tap="{&quot;operation&quot;:&quot;commonOperation.deleteData&quot;,&quot;args&quot;:{&quot;data&quot;:&quot;restData1&quot;,&quot;filter&quot;:&quot;js:wx.Util.iif($row.fyonghu==restData2.current.id&amp;&amp;$row.fxuanzhong==1,true,false)&quot;,&quot;force&quot;:&quot;false&quot;},&quot;argsDef&quot;:{&quot;filter&quot;:{&quot;type&quot;:&quot;fn&quot;,&quot;params&quot;:&quot;$row&quot;}}}"
 style="font-size:15px;color:#999999"
 xmlns:on="http://www.wex5.com/wx/event/on">删除所选项</wx:text></wx:col></wx:row></wx:top>
<wx:content
 class="x-panel-content"
 id="content"
 style="top:48px;bottom:48px">
<wx:list
 _created="true"
 id="list"
 index="listindex"
 item="listitem"
 items="restData1.value"
 label="动态列表">
<wx:row
 class="x-row"
 id="row1"
 style="margin-top:4px;background-color:#eadbf2">
<wx:col
 class="x-col x-col-fixed x-col-center"
 id="col2">
<wx:radio
 bind:ref="listitem.fxuanzhong"
 color="#fa6868"
 id="radio"
 on:valuechange="{&quot;operation&quot;:&quot;commonOperation.saveData&quot;,&quot;args&quot;:{&quot;data&quot;:&quot;restData1&quot;}}"
 value="1"/></wx:col>
<wx:col
 class="x-col x-col-fixed"
 id="col3">
<wx:image
 bind:src="listitem.fshangpinid_shangpin1_ftupian"
 class="weui-img"
 id="image"
 mode="scaleToFill"
 style="width:64px;height:64px"/></wx:col>
<wx:col
 class="x-col"
 id="col4"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:text
 bind:text="listitem.fshangpinid_shangpin1_fmingcheng"
 id="text2"
 style="display:block">名称</wx:text>
<wx:row
 class="x-row"
 id="row2">
<wx:col
 class="x-col"
 id="col6">
<wx:text
 bind:text="&quot;￥&quot; + listitem.fshangpinid_shangpin1_fjiage"
 id="text3"
 style="display:block;color:#fa6868">价格</wx:text></wx:col>
<wx:col
 class="xui-hignlight-selected xui-hignlight-selected xui-hignlight-selected x-col x-col-fixed xui-hignlight-selected xui-hignlight-selected"
 id="col7"
 style="flex: 0 0 auto; width: auto;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:button
 bind:disabled="wx.Util.iif(listitem.fshangpinid_shangpin1_fkucun&lt;=0||restData3.current.fxinyongf&lt;=-30,true,false)"
 class="wx-btn"
 id="button"
 on:tap="{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/queren_dd.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:listitem.fshangpinid}&quot;}}"
 plain="true"
 size="mini"
 style="border-width:0px;background-color:#fa6868;color:#FFFFFF"
 type="warn"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">
<wx:icon
 id="icon"
 size="15"
 type="wx-btn-icon"/>
<view
 bind:text="wx.Util.iif(listitem.fshangpinid_shangpin1_fkucun&lt;=0,&quot;已售罄&quot;,wx.Util.iif(restData3.current.fxinyongf&lt;=-30,&quot;信用差&quot;,&quot;购买&quot;))"
 class="wx-btn-label"
 id="view"
 xmlns:bind="http://www.wex5.com/wx/bind">购买</view></wx:button></wx:col></wx:row></wx:col></wx:row></wx:list></wx:content>
<wx:bottom
 class="x-panel-bottom"
 height="48"
 id="bottom"
 style="background-color:#eadbf2;height:48px">
<wx:row
 class="x-row"
 id="row3"
 style="background-color:#eadbf2"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">
<wx:col
 class="x-col x-col-fixed"
 id="col5">
<wx:checkbox
 color="#fa6868"
 id="checkbox"
 on:valuechange="{&quot;operation&quot;:&quot;commonOperation.allSetValue&quot;,&quot;args&quot;:{&quot;data&quot;:&quot;restData1&quot;,&quot;col&quot;:&quot;fxuanzhong&quot;,&quot;value&quot;:&quot;js:$event.value&quot;}}"
 shape="circle"
 value="1"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:on="http://www.wex5.com/wx/event/on"/>
<wx:text
 id="text4">全选</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col8"
 style="text-align: right;padding-right:10px"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:text
 id="text5"
 style="text-align:right;font-size:14px;color:#000000">总计：</wx:text>
<wx:text
 bind:text="restData1.sum(&quot;col0&quot;)"
 id="text6"
 style="text-align:right;font-size:14px;color:#fa6868"
 xmlns:bind="http://www.wex5.com/wx/bind">（总价）</wx:text></wx:col></wx:row></wx:bottom></wx:panel></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";var app = getApp();export default class IndexPage extends PageImpl {constructor(...args){super(...args);}}